package com.jim.aliceAgent.controller;

import com.jim.aliceAgent.entity.Reminder;
import com.jim.aliceAgent.service.ReminderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/reminder")
public class ReminderController {

    @Autowired
    private ReminderService reminderService;

    @PostMapping("/add")
    public Object addReminder(Reminder reminder) {
        return reminderService.addOrUpdateReminder(reminder);
    }
}
